package com.zcxy360.sandtable.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CourseStudentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CourseStudentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCourseIdIsNull() {
            addCriterion("course_student.course_id is null");
            return (Criteria) this;
        }

        public Criteria andCourseIdIsNotNull() {
            addCriterion("course_student.course_id is not null");
            return (Criteria) this;
        }

        public Criteria andCourseIdEqualTo(Integer value) {
            addCriterion("course_student.course_id =", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotEqualTo(Integer value) {
            addCriterion("course_student.course_id <>", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThan(Integer value) {
            addCriterion("course_student.course_id >", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_student.course_id >=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThan(Integer value) {
            addCriterion("course_student.course_id <", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThanOrEqualTo(Integer value) {
            addCriterion("course_student.course_id <=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdIn(List<Integer> values) {
            addCriterion("course_student.course_id in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotIn(List<Integer> values) {
            addCriterion("course_student.course_id not in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdBetween(Integer value1, Integer value2) {
            addCriterion("course_student.course_id between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("course_student.course_id not between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("course_student.user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("course_student.user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("course_student.user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("course_student.user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("course_student.user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_student.user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("course_student.user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("course_student.user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("course_student.user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("course_student.user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("course_student.user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("course_student.user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andTeamIdIsNull() {
            addCriterion("course_student.team_id is null");
            return (Criteria) this;
        }

        public Criteria andTeamIdIsNotNull() {
            addCriterion("course_student.team_id is not null");
            return (Criteria) this;
        }

        public Criteria andTeamIdEqualTo(Integer value) {
            addCriterion("course_student.team_id =", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdNotEqualTo(Integer value) {
            addCriterion("course_student.team_id <>", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdGreaterThan(Integer value) {
            addCriterion("course_student.team_id >", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_student.team_id >=", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdLessThan(Integer value) {
            addCriterion("course_student.team_id <", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdLessThanOrEqualTo(Integer value) {
            addCriterion("course_student.team_id <=", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdIn(List<Integer> values) {
            addCriterion("course_student.team_id in", values, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdNotIn(List<Integer> values) {
            addCriterion("course_student.team_id not in", values, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdBetween(Integer value1, Integer value2) {
            addCriterion("course_student.team_id between", value1, value2, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdNotBetween(Integer value1, Integer value2) {
            addCriterion("course_student.team_id not between", value1, value2, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamRoleIsNull() {
            addCriterion("course_student.team_role is null");
            return (Criteria) this;
        }

        public Criteria andTeamRoleIsNotNull() {
            addCriterion("course_student.team_role is not null");
            return (Criteria) this;
        }

        public Criteria andTeamRoleEqualTo(String value) {
            addCriterion("course_student.team_role =", value, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleNotEqualTo(String value) {
            addCriterion("course_student.team_role <>", value, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleGreaterThan(String value) {
            addCriterion("course_student.team_role >", value, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleGreaterThanOrEqualTo(String value) {
            addCriterion("course_student.team_role >=", value, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleLessThan(String value) {
            addCriterion("course_student.team_role <", value, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleLessThanOrEqualTo(String value) {
            addCriterion("course_student.team_role <=", value, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleLike(String value) {
            addCriterion("course_student.team_role like", value, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleNotLike(String value) {
            addCriterion("course_student.team_role not like", value, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleIn(List<String> values) {
            addCriterion("course_student.team_role in", values, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleNotIn(List<String> values) {
            addCriterion("course_student.team_role not in", values, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleBetween(String value1, String value2) {
            addCriterion("course_student.team_role between", value1, value2, "teamRole");
            return (Criteria) this;
        }

        public Criteria andTeamRoleNotBetween(String value1, String value2) {
            addCriterion("course_student.team_role not between", value1, value2, "teamRole");
            return (Criteria) this;
        }

        public Criteria andJoinTimeIsNull() {
            addCriterion("course_student.join_time is null");
            return (Criteria) this;
        }

        public Criteria andJoinTimeIsNotNull() {
            addCriterion("course_student.join_time is not null");
            return (Criteria) this;
        }

        public Criteria andJoinTimeEqualTo(Date value) {
            addCriterion("course_student.join_time =", value, "joinTime");
            return (Criteria) this;
        }

        public Criteria andJoinTimeNotEqualTo(Date value) {
            addCriterion("course_student.join_time <>", value, "joinTime");
            return (Criteria) this;
        }

        public Criteria andJoinTimeGreaterThan(Date value) {
            addCriterion("course_student.join_time >", value, "joinTime");
            return (Criteria) this;
        }

        public Criteria andJoinTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("course_student.join_time >=", value, "joinTime");
            return (Criteria) this;
        }

        public Criteria andJoinTimeLessThan(Date value) {
            addCriterion("course_student.join_time <", value, "joinTime");
            return (Criteria) this;
        }

        public Criteria andJoinTimeLessThanOrEqualTo(Date value) {
            addCriterion("course_student.join_time <=", value, "joinTime");
            return (Criteria) this;
        }

        public Criteria andJoinTimeIn(List<Date> values) {
            addCriterion("course_student.join_time in", values, "joinTime");
            return (Criteria) this;
        }

        public Criteria andJoinTimeNotIn(List<Date> values) {
            addCriterion("course_student.join_time not in", values, "joinTime");
            return (Criteria) this;
        }

        public Criteria andJoinTimeBetween(Date value1, Date value2) {
            addCriterion("course_student.join_time between", value1, value2, "joinTime");
            return (Criteria) this;
        }

        public Criteria andJoinTimeNotBetween(Date value1, Date value2) {
            addCriterion("course_student.join_time not between", value1, value2, "joinTime");
            return (Criteria) this;
        }

        public Criteria andIsAgreeIsNull() {
            addCriterion("course_student.is_agree is null");
            return (Criteria) this;
        }

        public Criteria andIsAgreeIsNotNull() {
            addCriterion("course_student.is_agree is not null");
            return (Criteria) this;
        }

        public Criteria andIsAgreeEqualTo(Boolean value) {
            addCriterion("course_student.is_agree =", value, "isAgree");
            return (Criteria) this;
        }

        public Criteria andIsAgreeNotEqualTo(Boolean value) {
            addCriterion("course_student.is_agree <>", value, "isAgree");
            return (Criteria) this;
        }

        public Criteria andIsAgreeGreaterThan(Boolean value) {
            addCriterion("course_student.is_agree >", value, "isAgree");
            return (Criteria) this;
        }

        public Criteria andIsAgreeGreaterThanOrEqualTo(Boolean value) {
            addCriterion("course_student.is_agree >=", value, "isAgree");
            return (Criteria) this;
        }

        public Criteria andIsAgreeLessThan(Boolean value) {
            addCriterion("course_student.is_agree <", value, "isAgree");
            return (Criteria) this;
        }

        public Criteria andIsAgreeLessThanOrEqualTo(Boolean value) {
            addCriterion("course_student.is_agree <=", value, "isAgree");
            return (Criteria) this;
        }

        public Criteria andIsAgreeIn(List<Boolean> values) {
            addCriterion("course_student.is_agree in", values, "isAgree");
            return (Criteria) this;
        }

        public Criteria andIsAgreeNotIn(List<Boolean> values) {
            addCriterion("course_student.is_agree not in", values, "isAgree");
            return (Criteria) this;
        }

        public Criteria andIsAgreeBetween(Boolean value1, Boolean value2) {
            addCriterion("course_student.is_agree between", value1, value2, "isAgree");
            return (Criteria) this;
        }

        public Criteria andIsAgreeNotBetween(Boolean value1, Boolean value2) {
            addCriterion("course_student.is_agree not between", value1, value2, "isAgree");
            return (Criteria) this;
        }

        public Criteria andPersonScoreIsNull() {
            addCriterion("course_student.person_score is null");
            return (Criteria) this;
        }

        public Criteria andPersonScoreIsNotNull() {
            addCriterion("course_student.person_score is not null");
            return (Criteria) this;
        }

        public Criteria andPersonScoreEqualTo(Integer value) {
            addCriterion("course_student.person_score =", value, "personScore");
            return (Criteria) this;
        }

        public Criteria andPersonScoreNotEqualTo(Integer value) {
            addCriterion("course_student.person_score <>", value, "personScore");
            return (Criteria) this;
        }

        public Criteria andPersonScoreGreaterThan(Integer value) {
            addCriterion("course_student.person_score >", value, "personScore");
            return (Criteria) this;
        }

        public Criteria andPersonScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_student.person_score >=", value, "personScore");
            return (Criteria) this;
        }

        public Criteria andPersonScoreLessThan(Integer value) {
            addCriterion("course_student.person_score <", value, "personScore");
            return (Criteria) this;
        }

        public Criteria andPersonScoreLessThanOrEqualTo(Integer value) {
            addCriterion("course_student.person_score <=", value, "personScore");
            return (Criteria) this;
        }

        public Criteria andPersonScoreIn(List<Integer> values) {
            addCriterion("course_student.person_score in", values, "personScore");
            return (Criteria) this;
        }

        public Criteria andPersonScoreNotIn(List<Integer> values) {
            addCriterion("course_student.person_score not in", values, "personScore");
            return (Criteria) this;
        }

        public Criteria andPersonScoreBetween(Integer value1, Integer value2) {
            addCriterion("course_student.person_score between", value1, value2, "personScore");
            return (Criteria) this;
        }

        public Criteria andPersonScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("course_student.person_score not between", value1, value2, "personScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreIsNull() {
            addCriterion("course_student.team_score is null");
            return (Criteria) this;
        }

        public Criteria andTeamScoreIsNotNull() {
            addCriterion("course_student.team_score is not null");
            return (Criteria) this;
        }

        public Criteria andTeamScoreEqualTo(Integer value) {
            addCriterion("course_student.team_score =", value, "teamScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreNotEqualTo(Integer value) {
            addCriterion("course_student.team_score <>", value, "teamScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreGreaterThan(Integer value) {
            addCriterion("course_student.team_score >", value, "teamScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_student.team_score >=", value, "teamScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreLessThan(Integer value) {
            addCriterion("course_student.team_score <", value, "teamScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreLessThanOrEqualTo(Integer value) {
            addCriterion("course_student.team_score <=", value, "teamScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreIn(List<Integer> values) {
            addCriterion("course_student.team_score in", values, "teamScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreNotIn(List<Integer> values) {
            addCriterion("course_student.team_score not in", values, "teamScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreBetween(Integer value1, Integer value2) {
            addCriterion("course_student.team_score between", value1, value2, "teamScore");
            return (Criteria) this;
        }

        public Criteria andTeamScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("course_student.team_score not between", value1, value2, "teamScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreIsNull() {
            addCriterion("course_student.completion_score is null");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreIsNotNull() {
            addCriterion("course_student.completion_score is not null");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreEqualTo(Integer value) {
            addCriterion("course_student.completion_score =", value, "completionScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreNotEqualTo(Integer value) {
            addCriterion("course_student.completion_score <>", value, "completionScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreGreaterThan(Integer value) {
            addCriterion("course_student.completion_score >", value, "completionScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_student.completion_score >=", value, "completionScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreLessThan(Integer value) {
            addCriterion("course_student.completion_score <", value, "completionScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreLessThanOrEqualTo(Integer value) {
            addCriterion("course_student.completion_score <=", value, "completionScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreIn(List<Integer> values) {
            addCriterion("course_student.completion_score in", values, "completionScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreNotIn(List<Integer> values) {
            addCriterion("course_student.completion_score not in", values, "completionScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreBetween(Integer value1, Integer value2) {
            addCriterion("course_student.completion_score between", value1, value2, "completionScore");
            return (Criteria) this;
        }

        public Criteria andCompletionScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("course_student.completion_score not between", value1, value2, "completionScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreIsNull() {
            addCriterion("course_student.performence_score is null");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreIsNotNull() {
            addCriterion("course_student.performence_score is not null");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreEqualTo(Integer value) {
            addCriterion("course_student.performence_score =", value, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreNotEqualTo(Integer value) {
            addCriterion("course_student.performence_score <>", value, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreGreaterThan(Integer value) {
            addCriterion("course_student.performence_score >", value, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_student.performence_score >=", value, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreLessThan(Integer value) {
            addCriterion("course_student.performence_score <", value, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreLessThanOrEqualTo(Integer value) {
            addCriterion("course_student.performence_score <=", value, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreIn(List<Integer> values) {
            addCriterion("course_student.performence_score in", values, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreNotIn(List<Integer> values) {
            addCriterion("course_student.performence_score not in", values, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreBetween(Integer value1, Integer value2) {
            addCriterion("course_student.performence_score between", value1, value2, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andPerformenceScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("course_student.performence_score not between", value1, value2, "performenceScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreIsNull() {
            addCriterion("course_student.total_score is null");
            return (Criteria) this;
        }

        public Criteria andTotalScoreIsNotNull() {
            addCriterion("course_student.total_score is not null");
            return (Criteria) this;
        }

        public Criteria andTotalScoreEqualTo(Double value) {
            addCriterion("course_student.total_score =", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreNotEqualTo(Double value) {
            addCriterion("course_student.total_score <>", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreGreaterThan(Double value) {
            addCriterion("course_student.total_score >", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreGreaterThanOrEqualTo(Double value) {
            addCriterion("course_student.total_score >=", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreLessThan(Double value) {
            addCriterion("course_student.total_score <", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreLessThanOrEqualTo(Double value) {
            addCriterion("course_student.total_score <=", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreIn(List<Double> values) {
            addCriterion("course_student.total_score in", values, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreNotIn(List<Double> values) {
            addCriterion("course_student.total_score not in", values, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreBetween(Double value1, Double value2) {
            addCriterion("course_student.total_score between", value1, value2, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreNotBetween(Double value1, Double value2) {
            addCriterion("course_student.total_score not between", value1, value2, "totalScore");
            return (Criteria) this;
        }

        public Criteria andIsPublishedIsNull() {
            addCriterion("course_student.is_published is null");
            return (Criteria) this;
        }

        public Criteria andIsPublishedIsNotNull() {
            addCriterion("course_student.is_published is not null");
            return (Criteria) this;
        }

        public Criteria andIsPublishedEqualTo(Boolean value) {
            addCriterion("course_student.is_published =", value, "isPublished");
            return (Criteria) this;
        }

        public Criteria andIsPublishedNotEqualTo(Boolean value) {
            addCriterion("course_student.is_published <>", value, "isPublished");
            return (Criteria) this;
        }

        public Criteria andIsPublishedGreaterThan(Boolean value) {
            addCriterion("course_student.is_published >", value, "isPublished");
            return (Criteria) this;
        }

        public Criteria andIsPublishedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("course_student.is_published >=", value, "isPublished");
            return (Criteria) this;
        }

        public Criteria andIsPublishedLessThan(Boolean value) {
            addCriterion("course_student.is_published <", value, "isPublished");
            return (Criteria) this;
        }

        public Criteria andIsPublishedLessThanOrEqualTo(Boolean value) {
            addCriterion("course_student.is_published <=", value, "isPublished");
            return (Criteria) this;
        }

        public Criteria andIsPublishedIn(List<Boolean> values) {
            addCriterion("course_student.is_published in", values, "isPublished");
            return (Criteria) this;
        }

        public Criteria andIsPublishedNotIn(List<Boolean> values) {
            addCriterion("course_student.is_published not in", values, "isPublished");
            return (Criteria) this;
        }

        public Criteria andIsPublishedBetween(Boolean value1, Boolean value2) {
            addCriterion("course_student.is_published between", value1, value2, "isPublished");
            return (Criteria) this;
        }

        public Criteria andIsPublishedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("course_student.is_published not between", value1, value2, "isPublished");
            return (Criteria) this;
        }

        public Criteria andPublishTimeIsNull() {
            addCriterion("course_student.publish_time is null");
            return (Criteria) this;
        }

        public Criteria andPublishTimeIsNotNull() {
            addCriterion("course_student.publish_time is not null");
            return (Criteria) this;
        }

        public Criteria andPublishTimeEqualTo(Date value) {
            addCriterion("course_student.publish_time =", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeNotEqualTo(Date value) {
            addCriterion("course_student.publish_time <>", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeGreaterThan(Date value) {
            addCriterion("course_student.publish_time >", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("course_student.publish_time >=", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeLessThan(Date value) {
            addCriterion("course_student.publish_time <", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeLessThanOrEqualTo(Date value) {
            addCriterion("course_student.publish_time <=", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeIn(List<Date> values) {
            addCriterion("course_student.publish_time in", values, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeNotIn(List<Date> values) {
            addCriterion("course_student.publish_time not in", values, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeBetween(Date value1, Date value2) {
            addCriterion("course_student.publish_time between", value1, value2, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeNotBetween(Date value1, Date value2) {
            addCriterion("course_student.publish_time not between", value1, value2, "publishTime");
            return (Criteria) this;
        }

        public Criteria andCompletionIsNull() {
            addCriterion("course_student.completion is null");
            return (Criteria) this;
        }

        public Criteria andCompletionIsNotNull() {
            addCriterion("course_student.completion is not null");
            return (Criteria) this;
        }

        public Criteria andCompletionEqualTo(Double value) {
            addCriterion("course_student.completion =", value, "completion");
            return (Criteria) this;
        }

        public Criteria andCompletionNotEqualTo(Double value) {
            addCriterion("course_student.completion <>", value, "completion");
            return (Criteria) this;
        }

        public Criteria andCompletionGreaterThan(Double value) {
            addCriterion("course_student.completion >", value, "completion");
            return (Criteria) this;
        }

        public Criteria andCompletionGreaterThanOrEqualTo(Double value) {
            addCriterion("course_student.completion >=", value, "completion");
            return (Criteria) this;
        }

        public Criteria andCompletionLessThan(Double value) {
            addCriterion("course_student.completion <", value, "completion");
            return (Criteria) this;
        }

        public Criteria andCompletionLessThanOrEqualTo(Double value) {
            addCriterion("course_student.completion <=", value, "completion");
            return (Criteria) this;
        }

        public Criteria andCompletionIn(List<Double> values) {
            addCriterion("course_student.completion in", values, "completion");
            return (Criteria) this;
        }

        public Criteria andCompletionNotIn(List<Double> values) {
            addCriterion("course_student.completion not in", values, "completion");
            return (Criteria) this;
        }

        public Criteria andCompletionBetween(Double value1, Double value2) {
            addCriterion("course_student.completion between", value1, value2, "completion");
            return (Criteria) this;
        }

        public Criteria andCompletionNotBetween(Double value1, Double value2) {
            addCriterion("course_student.completion not between", value1, value2, "completion");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}